#ifndef REDIMENSION_H
#define REDIMENSION_H

#include <QtGui>
#include "Redimension/ui_Dimension.h"
#include "Redimension/seamcarvingresize.h"
#include "Layer/layer.h"
#include "Filter/sobelfilter.h"

class DrawingArea;


class Redimension : public QObject
{
    Q_OBJECT


public :
    Redimension(DrawingArea*  drawing, QWidget* parent);

private slots:
     void resetValue();
     void redimensionImage();

     void redimensionBilinearLayer(Layer* layer, int newWidth, int newHeight);
     void redimensionMoyennageLayer(Layer* layer, int newWidth, int newHeight);
     void smartResize(Layer* layer, int newWidth, int newHeight);

private :
        Ui_redimen::Dialog* ui_redimen;
        DrawingArea* drawing;
        SeamCarvingResize* seamCarving;
        int width;
        int height;

private slots :
        void askResizeDrawing();

};




#endif // REDIMENSION_H
